<?php

function getStatus($i)
{ 
$status_string = "";

switch ($i)
{
case 0:
  $status_string = "PENDING : Checklist Filling";
  break;
case 1:
  $status_string = "PENDING : Checklist Approval";
  break;
case 2:
  $status_string = "PENDING : Internal IDCE Filling";
  break;
case 3:
  $status_string = "PENDING : Internal IDCE Approval";
  break;
case 4:
  $status_string = "PENDING : External IDCE Filling";
  break;
case 5:
  $status_string = "PENDING : External IDCE Approval";
  break;
case 6:
  $status_string = "PENDING : PreSubmission Filling";
  break;
case 7:
  $status_string = "PENDING : PreSubmission Approval";
  break;
case 8:
  $status_string = "PENDING : PostSubmission Filling";
  break;
case 9:
  $status_string = "PENDING : PostSubmission Approval";
  break;
case 10:
  $status_string = "Completed";
  break;

default :
  $status_string = "Error Message";
  break;
}

return $status_string ;
}

?>